import request from '@/utils/request'


export default () => ({

  //列表
  PROJECT_START_FILE_LIST:function (data) {
    return request({
      url: `/file/list`,
      method: 'post',
      data
    })
  },

  //检验结果列表
  PROJECT_START_FILE_INSPECTION_LIST:function (data) {
    return request({
      url: `/file/inspection/list`,
      method: 'post',
      data
    })
  },

  //详情
  PROJECT_START_FILE_DETAIL:function (id) {
    return request({
      url: `/file/detail?id=${id}`,
      method: 'get',
    })
  },

  //获取文件项目集合（无登录人筛选）
  PROJECT_START_FILE_PROJECT:function () {
    return request({
      url: `project-start/project/all/for-file`,
      method: 'get',
    })
  },

  //历史记录
  PROJECT_START_FILE_HISTORY:function (no,id) {
    return request({
      url: `/file/history?file_no=${no}&file_id=${id}`,
      method: 'get',
    })
  },

  //详情
  PROJECT_START_FILE_TYPE:function () {
    return request({
      url: `/file/file-type`,
      method: 'get',
    })
  },

  //详情
  PROJECT_START_FILE_HANS:function () {
    return request({
      url: `/file/file-hans`,
      method: 'get',
    })
  },

  //详情
  PROJECT_START_FILE_INSPECTION:function (id) {
    return request({
      url: `/file/get-files/by-type?id=${id}`,
      method: 'get',
    })
  },
})
